<!-- 模态框 For Edit List -->
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <p style="font-size: 18px" class="modal-title" id="myModalLabel">
                    列表内容编辑
                </p>
            </div>
            <!--核心内容-->
            <div class="modal-body" style="min-height: 250px; padding:20px 50px">
                <div ng-repeat="opt in selOptions[modalField]">
                    <p ng-show="opt.name!=''">
                        <span ng-show="selFlag[modalField][$index]">
                            <label style="min-width:168px">{{opt.name}}</label>
                            <button type="button" class="btn btn-default btn-xs">
                                <span class="glyphicon glyphicon glyphicon-pencil" ng-click="editList(modalField, $index)"> 修改</span>
                            </button>
                        </span>
                        <span ng-show="!selFlag[modalField][$index]">
                            <input style="min-width:150px;" ng-model="selOptions[modalField][$index].name">
                            <button type="button" class="btn btn-info btn-xs">
                                <span class="glyphicon glyphicon glyphicon-ok" ng-click="editList(modalField, $index)"> 完成</span>
                            </button>
                        </span>
                        <button type="button" class="btn btn-danger btn-xs" ng-click="delOption(modalField, $index)">
                            <span class="glyphicon glyphicon glyphicon-remove-circle"> 刪除</span>
                        </button>
                    </p>
                </div>
                <div><input type="text" id="newOption" ng-model="newOption" placeholder="新项名称" style="width:250px" >
                    <button type="button" class="btn btn-info" data-dismiss="modal" ng-click="addOption(modalField)">增加</button>
                </div>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<!-- End 模态框 For Edit List -->
